package org.example.api;


import org.example.common.Result;
import org.example.model.Article;

import java.util.List;

public interface ArticleApi {

    Result<List<Article>> pageArticleByUserId(Long userId, Long page, Long size);

    Result<Article> getArticleById(Long id);

    Result<List<Article>> queryArticleByUserId(Long userId);

    Result<List<Article>> pageArticleByUserIdAndCategoriesId(Long userId, Long categoriesId, Long page, Long size);

    Result<Article> saveArticle(Article article);
}
